home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Medabots Cardz
/
Medabots CD Cardz Metabee.bin
/
pc
/
assets
/
metabee.dxr
/
00239_Script_239
< prev
next >
Wrap
Text File
|
2001-12-07
|
819b
|
25 lines
global thescore, squam, gNetID, jumbo
property myFile
on enterframe me
squam = getOSdirectory()&"\"
if objectP(myFile) then set myFile = 0 --Delete the instance if it already exists
myFile = new(xtra "fileio") -- Create an instance of FileIO
-- openFile(myFile,the moviePath&"info.txt",1) --Open the file with read access
openFile(myFile,squam&"infom.txt",1) --Open the file with read access
myVariable = readFile(myFile) --set the variable 'myVariable' to the text of the file 'info.txt'
if readFile(myFile)=VOID then --checks to see if this file exists
thescore = 0
else
thescore = myVariable
closeFile(myFile) -- Close the file
end if
myFile = 0 -- Dispose of the instance
end
on exitFrame me
put thescore into member("scoredump")
go to the frame
end